<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>hello</title>
</head>
<body>
<h1>
  <span th:text="${msg}">欢迎您!</span>
</h1>
</h2>
<ul>
  <li th:each="user : ${users}">
    <span th:if="${user.name.length()} > 4">太长了</span>
    <span th:if="${user.name.length()} <= 4">你太短了</span>
  </li>
</ul>
</body>
</html>